<%@ include file="/WEB-INF/jsp/_include.jsp" %>

<t:base>
    <jsp:attribute name="header">
	    <script type="text/javascript" src="/static/umpires/umpires.js"></script>
		<script type="text/x-kendo-template" id="toolbar-umpire">		
			<div style="float:left">
				<button class="k-button" id="btn-newUmpire">New Umpire</button>
				<button class="k-button" id="btn-deleteSelected">Delete Selected</button>
			</div>
			<div style="float:right">
				<label for="filter_umpire_address">Location :</label>
				<input id="filter_umpire_address" type="text" style="width:150px;float:left"></input>
				<label for="filter_umpire_type" class="umpire_type-label">Umpire by : </label>
				<input type="search" id="filter_umpire_type" style="width:150px"/>
			</div>				
	</script>
      <h1>${title}</h1>
    </jsp:attribute>

    <jsp:body>
    	<c:set var="editing" value= "${!empty umpire}"/>
		<form action="s/umpires/edit" method="post">
		<input type="hidden" name="key" value="${umpire.key}" />
		<table>
			<tr>
				<td>NRIC:</td>
				<td><input type="text" name="nric" value="${umpire.nric}" /></td>
			</tr>
			<tr>
				<td>Name: </td>
				<td><input type="text" name="name" value="${umpire.name}" /></td>
			</tr>
			<tr>
				<td>Email:</td>
				<td><input type="text" name="email" value="${umpire.email}" /></td>
			</tr>
			<tr>
				<td>Mobile No:</td>
				<td><input type="text" name="mobile" value="${umpire.mobile}" /></td>
			</tr>
			<tr>
				<td>Type</td>
				<td><input type="text" name="umpireType" value="${umpire.umpireType}" /></td>
			</tr>
			<tr>
				<td>Address:</td>
				<td><input type="text" name="address" value="${umpire.address}" /></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" value="Submit" class="SubmitBtn"/></td>
			</tr>
		</table>
		</form>
    </jsp:body>
</t:base>